package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("user_message")
@AllArgsConstructor
@NoArgsConstructor
public class UserMessage {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String headIcon;
    private String phone;
    //登录状态
    private Long state;
    private String openid;
    private String member;
    private Integer money;
    /**
     * 性别
     */
    private Integer sex;

    /**
     * 出生年月日
     */
    private String dateOfBirth;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
